import request from '@/utils/request'

// 获取楼层配置列表
export function listFloorSetData(query) {
  return request({
    url: '/setting/sala',
    method: 'get',
    params: query
  })
}

// // 查询协议详细
// export function getAgreement(id) {
//   return request({
//     url: '/agreement/agreement/' + id,
//     method: 'get'
//   })
// }

// 新增楼层配置
export function addFloorSetData(data) {
  return request({
    url: '/setting/sala',
    method: 'post',
    data: data
  })
}

// 修改楼层配置
export function updateFloorSetData(id,data) {
  return request({
    url: '/setting/sala/'+id,
    method: 'DELETE',
    data: data
  })
}

// 删除楼层配置
export function delFloorSetData(ids) {
  return request({
    url: '/setting/sala/' + ids,
    method: 'delete'
  })
}
